package com.city.service.party.impl;

import com.city.domain.party.PartyVideo;
import com.city.repository.party.PartyVideoRepository;
import com.city.service.party.PartyVideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @deprecation: 党建教育视频信息
 * @dmail: 398521613@qq.com
 * @author: L-H
 * @date: 2018-07-18 13:14
 */
@Service
public class PartyVideoServiceImpl implements PartyVideoService {

    @Autowired
    private PartyVideoRepository repository;
    @Override
    public void save(PartyVideo partyVideo) {
        repository.save(partyVideo);
    }

    @Override
    public List<PartyVideo> findAll() {
        return repository.findAll();
    }

    @Override
    public List<PartyVideo> findByLessonId(int id) {
        return repository.findByLessonId(id);
    }
}
